//
//  TextItemTableViewCell.m
//  Learn
//
//  Created by  on 2024/4/12.
//  Copyright © 2024 迟建国. All rights reserved.
//

#import "TextItemTableViewCell.h"
#import "TextBookUnitSourceListModel.h"

@implementation TextItemTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(TextBookUnitTextModel *)model {
    _model = model;
    self.textL.text = model.name;
    if (model.isRead) {
        self.textL.textColor = rgba(12, 183, 108, 1);
    } else {
        self.textL.textColor = rgba(181, 181, 181, 1);
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
